<#import "_layout.html" as layout>
<@layout.header "${(category.title)!}列表"></@layout.header>
<@layout.body>
<main>
  <div class="weizhi">您现在的位置是：<a href="/">首页</a>&nbsp;>&nbsp;<a href="${(category.url)!}">${(category.title)!}列表</a></div>
  <div class="lbox">
    <div class="page_title">${(category.title)!}列表</div>
    <div class="newslist">
      <#if articleVoPage??>
          <ul class="blogs_list">
            <#list articleVoPage.records as item>
              <li>
                <section>
                  <h2><a href="${item.url!}" target="_blank">${item.title!}</a></h2>
                  <p>${item.summary!}</p>
                  <div class="blogs_info"><span class="timer"><@formatTime value=(item.created)! format="yyyy-MM-dd"/></span> <span class="view">${item.viewCount!}</span></div>
                </section>
              </li>
            </#list>
          </ul>
      </#if>
      <@layout._articlePage/>
    </div>
  </div>
  <aside class="rbox">
    <div class="hot_news">
      <div class="side_title">推荐问答</div>
      <ul class="pic_news">

        <@articleListTag tagId=1 orderBy="created">
          <#if data??>
            <#list data as item>

            <li><a href="${(item.url)!}" target="_blank">
              <h3>${(item.title)!}</h3>
              <span><@formatTime value=(item.created)! format="yyyy-MM-dd"/></span></a></li>

            </#list>
          </#if>
        </@articleListTag>

      </ul>
    </div>
    <div class="tj_news">
      <div class="side_title">热门问答</div>
      <ul class="pic_news">

        <@articleListTag tagId=2 orderBy="created">
          <#if data??>
            <#list data as item>
              <li><a href="${(item.url)!}" target="_blank">
                <h3>${(item.title)!}</h3>
                <span><@formatTime value=(item.created)! format="yyyy-MM-dd"/></span></a></li>
            </#list>
          </#if>
        </@articleListTag>

      </ul>
    </div>
    <div class="tags">

        <@tagList count="30">
          <#if data?? && (data?size>0)>
            <div class="tags">
              <div class="side_title">标签</div>
                <ul>
                    <#list data as item>
                    <li><a href="${(item.url)!}">${(item.tagName)!}</a></li>
                    </#list>
                </ul>
            </div>
          </#if>
        </@tagList>

    </div>
  </aside>
</main>
</@layout.body>
<@layout.script>
</@layout.script>